package com.wx;

import com.wx.entity.Result;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestMVC {
    @RequestMapping("/test")
    @PreAuthorize("hasRole('permission_E')")
    public Result test(){
        return new Result(true,"测试通过");
    }

}
